package cn.tom.service.impl;

import cn.tom.dao.BookDao;
import cn.tom.dao.OrderitemDao;
import cn.tom.entity.Book;
import cn.tom.entity.Orditem;
import cn.tom.service.OrditemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OrditemServiceImpl implements OrditemService {

    @Autowired
    private OrderitemDao orderitemDao;

    @Override
    public int add(Orditem orditem) {
        return orderitemDao.add(orditem);
    }
}
